package ywxt.tool.stool.repository

import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import reactor.core.publisher.Flux
import ywxt.tool.stool.entity.PoetEntity

interface PoetRepository : ReactiveMongoRepository<PoetEntity, String> {

    fun findAllByDynasty(dynasty: String): Flux<PoetEntity>

    fun findAllByName(name: String): Flux<PoetEntity>

}